<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <script>
      var now = new Date();
      now.getFullYear();//year
      now.getDate();// month
      now.getDay();//day
      now.getMonth();//month
      now.getHours();//hour

      now.getTime();
    </script>
</body>
</html>